import request from "@/utils/request";

// 查询分类列表
export function labelType_list(query) {
  return request({
    url: "/town/classify/list",
    method: "get",
    params: query,
  });
}

// 新增分类
export function labelType_add(data) {
  return request({
    url: "/town/classify",
    method: "post",
    data: data,
  });
}
//分类列详情
export function labelType_detail(data) {
  return request({
    url: "/town/classify/info",
    method: "get",
    params: data,
  });
}

// 修改分类
export function labelType_update(data) {
  return request({
    url: "/town/classify",
    method: "put",
    data: data,
  });
}

// 删除分类
export function labelType_delete(id) {
  return request({
    url: "/town/classify/" + id,
    method: "delete",
  });
}
